/*
 * @Description:
 * @version:
 * @Author: 潘骏杰
 * @Date: 2021-11-19 09:03:57
 * @LastEditors: 周子尧
 * @LastEditTime: 2022-04-11 16:25:45
 */
import Vue from 'vue'
import App from '@/App.vue'

import router from '@/router'
import Bridge from '@/utils/JSbridge.js'
import '@/assets/style/public.css'

import Vant from 'vant'
import 'vant/lib/index.less'

import { Lazyload } from 'vant'

// 注册时可以配置额外的选项
Vue.use(Lazyload, {
  lazyComponent: true
})

import dayjs from 'dayjs' // 导入文件
Vue.prototype.$dayjs = dayjs // 赋值使用

Vue.use(Vant)
import * as filters from './filters'

import 'lib-flexible/flexible'

// 注册所有的全局过滤器
Object.keys(filters).forEach((key) => {
  Vue.filter(key, filters[key])
})

Vue.prototype.$bridge = Bridge
Vue.config.productionTip = false

var bus = new Vue()
Vue.prototype.bus = bus
new Vue({
  router,
  render: (h) => h(App)
}).$mount('#app')
